package cn.edu.ptu.jobfairs.basic.common;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created by Lin Chenxiao on 2020-03-05
 **/
@EqualsAndHashCode(callSuper = false)
@Data
public class DataResult<T> extends Result {
    private T data;
    public static DataResult NULL = new DataResult();

    public static <T> DataResult<T> ok(T data) {
        DataResult<T> r = new DataResult<>();
        r.data = data;
        return r;
    }
}
